xend: Update VCPUs_live
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 17 Feb 2009 11:13:34 +0000 (11:13 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 17 Feb 2009 11:13:34 +0000 (11:13 +0000)
commitae4aa4f8030d63720eb0c9db63a2a53dbdddfa1b
treea4979bd2d9b50191962eed39306e794bc26cfda7
parentec54fc8c6db34e43d9a0f1f4eaa62c68861d8b9f
xend: Update VCPUs_live

XendConfig.py said about VCPUs_live as follows.

 -- the number of VCPUs currently up, as reported by Xen.

But the value of VCPUs_live always is 1 till xm vcpu-set get
executed.  This patch updates VCPUs_live by using online_vcpus.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/python/xen/xend/XendConfig.py